package com.ywu.application.standard.menu.data;

import com.ywu.application.standard.menu.dto.RouterPathDto;
import com.ywu.application.standard.menu.entity.RouterPathEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface RouterPathRepository {
    void createRoutePathInfo(@Param("model") RouterPathEntity routerPathEntity);

    void updateRoutePathInfo(@Param("model") RouterPathEntity routerPathEntity);

    void deleteRoutePathInfo(@Param("model") RouterPathEntity routerPathEntity);

    List<RouterPathEntity> queryRoutePathInfo(@Param("model") RouterPathDto routerPathDto);

    int queryRoutePathCount(@Param("model") RouterPathDto routerPathDto);

    RouterPathEntity checkRouteRootPathEntity(@Param("model") RouterPathDto routerPathDto);

    List<RouterPathEntity> queryRoutePathInfoByIds(@Param("list") ArrayList<Integer> integers);
}
